package ciicos;

import cn.xuyanwu.spring.file.storage.EnableFileStorage;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;


/**
 * @version V3.1.0
 * @date 2021/3/15 17:12
 */
@SpringBootApplication(scanBasePackages = {"ciicos"},exclude={DataSourceAutoConfiguration.class})
@EnableFileStorage
@MapperScan({"ciicos.mapper","ciicos.**.mapper"})
public class AdminApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(AdminApplication.class);
        //添加监听器
//        springApplication.addListeners(new JnpfListener());
        springApplication.run(args);
        System.out.println("Admin启动完成");
    }

}
